
<ion-view view-title="会员卡充值">
    <ion-content padding="true">
        <div class="col-lg-12">
            <!--代码写在这里-->
            <div class="row">
                <div class="col-lg-12">
                    <div class="main-box">
                        <div class="form-group">
                            <label class="col-lg-2 control-label" >充值</label>
                            <div class="col-lg-6">
                                <input type="tel" class="form-control" style="border: solid #387ef5 thin;" ng-model="card.charge_number"  placeholder="请输入充值金额">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label" >充值备注</label>
                            <div class="col-lg-6">
                                <input type="text" class="form-control" style="border: solid #387ef5 thin;" ng-model="card.description"  placeholder="请输入扣款备注">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-6">
                                <a class="btn btn-success" ng-click="pay( card, 'charge' )" ng-disabled="isPaying">充值</a>
                                <a class="btn btn-danger" ng-if="manageName != 'admin'" href="#/card/list">取消</a>
                                <a class="btn btn-danger" ng-if="manageName == 'admin'" href="#/card">取消</a>
                            </div>
                        </div>
                        <h3>会员信息</h3>
                        <div class="main-box-body clearfix">
                            <form class="form-horizontal" role="form">
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">会员卡号</label>
                                    <div class="col-lg-6">
                                        <input value=" {{card.card_id}}"  type="text" disabled class="form-control"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">老人姓名</label>
                                    <div class="col-lg-6">
                                        <input value=" {{card.member.name}}"  type="text" disabled class="form-control"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">联系电话</label>
                                    <div class="col-lg-6">
                                        <input value=" {{card.member.phone}}"  type="text" disabled class="form-control"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">余额</label>
                                    <div class="col-lg-6">
                                        <input value=" {{card.fund}}"  type="text" disabled class="form-control"/>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>